package com.acme.bankapp.domain.bank;
import java.util.ArrayList;

import com.acme.exceptions.NotEnoughFundsException;

public class Client {
  private ArrayList<Account> accounts = new ArrayList<Account>();
  private Gender gender;
  private String name;
  public Client(String name, Gender gender) throws IllegalArgumentException, 
                NotEnoughFundsException {
    this.name = name;
    this.gender = gender;
    accounts.add(new CheckingAccount(0.0,0.0));
    accounts.add(new SavingsAccount(0.0));
  }
  public ArrayList<Account> getAcconts(){
    return accounts;
  }
  public void getClientSaltation(){
    System.out.println(gender.greeting + " " + name);
  }
  public String getName(){
    return name;
  }
  @Override
  public String toString(){
    return "Name : " + name + "; Accounts : " + accounts.size() + ";";
  }
}
